//
//  SGAvatarImageView.m
//  SemiGroup
//
//  Created by 陈无忌 on 12/10/15.
//  Copyright © 2015 陈无忌. All rights reserved.
//

#import "SGAvatarImageView.h"

@implementation SGAvatarImageView


- (void)awakeFromNib{
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = self.frame.size.height / 2;
    
    [self setContentMode:UIViewContentModeScaleAspectFill];
    [self setClipsToBounds:YES];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
